from apps.db import db
from apps.db.base_class import BaseModel, ModelMixin


class Permission(BaseModel, ModelMixin):

    name = db.Column(db.String(100), index=True, nullable=False, comment='权限名称')
    desc = db.Column(db.String(100), comment='权限描述')
    parent_id = db.Column(db.Integer, index=True, comment='父级权限id')
